package logic

import (
	"context"
	"shop_srv/model/es"

	"shop_srv/goods"
	"shop_srv/internal/svc"

	"github.com/zeromicro/go-zero/core/logx"
)

type GetGoodsSearchLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewGetGoodsSearchLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetGoodsSearchLogic {
	return &GetGoodsSearchLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *GetGoodsSearchLogic) GetGoodsSearch(in *goods.GetGoodsSearchRequest) (*goods.GetGoodsSearchResponse, error) {
	// todo: add your logic here and delete this line
	es.GoodsSearch("")
	return &goods.GetGoodsSearchResponse{}, nil
}
